package com.example.demo.mapper;

import com.example.demo.rpc.DemoServiceProto;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 *
 * @author hans
 * @version 1.0
 * @date 2024/11/21/10:07
 * @description 上下文
 */
public class MapperContext implements IMapperContext{

    private final List<DemoServiceProto.DemoList> demoList = new ArrayList<>();
    private final Map<Integer, Integer> demoMap = new HashMap<>();

    @Override
    public List<DemoServiceProto.DemoList> getDemoList() {
        return demoList;
    }

    @Override
    public Map<Integer, Integer> getDemoMap() {
        return demoMap;
    }
}
